package hudson.os;
import hudson.util.StreamTaskListener;
import jenkins.security.MasterToSlaveCallable;
import java.io.FileOutputStream;
/**
* @author Kohsuke Kawaguchi
*/
public class SUTester {
public static void main(String[] args) throws Throwable {
SU.execute(StreamTaskListener.fromStdout(),"kohsuke","bogus",new MasterToSlaveCallable<Object, Throwable>() {
public Object call() throws Throwable {
System.out.println("Touching /tmp/x");
new FileOutputStream("/tmp/x").close();
return null;
}
});
}
}